package com.yidu.t286.domain;
/*
 * @description: 用户实体类
 * @author:文杰
 * @date  :2021/7/27 0027上午 8:44
 */

import java.io.Serializable;

public class Caruser implements Serializable {
    //用户id
    private int caruId;
    //用户名
    private String userName;
    //密码
    private String userPassword;
    //手机号
    private String phoneNumber;
    //token
    private String token;

    /**
     * 默认构造方法
     */
    public Caruser() {

    }

    /**
     * 带参构造方法
     * @param userName 用户名
     * @param userPassword 密码
     * @param phoneNumber 手机号
     */
    public Caruser(String userName, String userPassword, String phoneNumber) {
        this.userName = userName;
        this.userPassword = userPassword;
        this.phoneNumber = phoneNumber;
    }

    /**
     * 带参构造方法
     * @param caruId 用户id
     * @param userName 用户名
     * @param userPassword 密码
     * @param phoneNumber 手机号
     */
    public Caruser(int caruId, String userName, String userPassword, String phoneNumber) {
        this.caruId = caruId;
        this.userName = userName;
        this.userPassword = userPassword;
        this.phoneNumber = phoneNumber;
    }

    @Override
    public String toString() {
        return "Caruser{" +
                "caruId=" + caruId +
                ", userName='" + userName + '\'' +
                ", userPassword='" + userPassword + '\'' +
                ", phoneNumber='" + phoneNumber + '\'' +
                '}';
    }

    //自动生成的setter和getters方法
    public int getCaruId() {
        return caruId;
    }

    public void setCaruId(int caruId) {
        this.caruId = caruId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserPassword() {
        return userPassword;
    }

    public void setUserPassword(String userPassword) {
        this.userPassword = userPassword;
    }

    public String getPhoneNumber() {
        return phoneNumber;
    }

    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }
}
